package com.qf.mapper;

import com.qf.model.Device;
import com.qf.model.Farm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceMapper {

    public int add(Device device);

    public Device findById(@Param("id") int id);

    public int edit(Device device);

    public int delete(@Param("id") int id);

    //当前页结果
    public List<Device> findPage(@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString);


    //总记录数
    public Long count(String queryString);

    //获取设备id集合
    public List<Integer> getDeviceIds();


}
